package com.wade.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wade.domain.Student;
import com.wade.service.StudentService;

/**
 * 
 * @company: hua9group
 * @author wdChen
 * @date:2017年6月23日 下午1:42:45
 * @Description:
 */
@Controller
@RequestMapping(value = "/student")
public class StudentController {

  @Autowired
  private StudentService studentService;
  
  @RequestMapping(value = "")
  public String toStudent() {
    return "student";
  }
  
  @RequestMapping(value = "/save")
  @ResponseBody
  public <T> Object save(Student student) {
    return studentService.save(student);
  }
}

